//
//  UIViewController+JKExtension.h
//  Category
//
//  Created by jamalping on 16/4/6.
//  Copyright © 2016年 jamalping. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewController (JKExtension)

/**
 * @brief  自定义navigationBar标题方法
 *
 * @param title title
 */
- (void)setTitle:(NSString *)title;

/**
 * @brief  自定义返回按钮
 *
 * @param title title
 *
 * @return button
 */
-(UIButton *)customBackButtonItemWithTitle:(NSString *)title image:(NSString *)imageName;

/**
 * @brief  返回按钮的响应
 */
-(void)backAction;

/**
 * @brief  添加单击手势(结束编辑)
 */
- (void)addEndEditingTapGestureRecognizer;

/**
 * @brief  设置返回按钮的标题
 *
 * @param title title
 */
- (void)setBackBarButtonItemTitle:(NSString *)title;

@end
